return center of gravity